package ldkxingzhe.ldkxingzhedemo.touchevent;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;
import android.widget.TextView;

import ldkxingzhe.ldkxingzhedemo.utils.LogDemo;


/**
 * Created by liangdengke on 2015/9/7.
 */
public class SwipeTouchListenerActivity extends AppCompatActivity{

    private final String TAG = SwipeTouchListenerActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LinearLayout layout = new LinearLayout(this);
        TextView textView = new TextView(this);
        textView.setText("SwipeTouchListenerActivity");
        layout.addView(textView);
        setContentView(layout);

        layout.setOnTouchListener(new OnSwipeTouchListener(this));
    }

    @Override
    protected void onDestroy() {
        LogDemo.v(TAG,"onDestroy");
        super.onDestroy();
    }
}
